package com.ruoyi.projects.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.projects.mapper.AliSmsMapper;
import com.ruoyi.projects.domain.AliSms;
import com.ruoyi.projects.service.IAliSmsService;

/**
 * 阿里短信Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-01-06
 */
@Service
public class AliSmsServiceImpl implements IAliSmsService 
{
    @Autowired
    private AliSmsMapper aliSmsMapper;

    /**
     * 查询阿里短信
     * 
     * @param id 阿里短信主键
     * @return 阿里短信
     */
    @Override
    public AliSms selectAliSmsById(Long id)
    {
        return aliSmsMapper.selectAliSmsById(id);
    }

    /**
     * 查询阿里短信列表
     * 
     * @param aliSms 阿里短信
     * @return 阿里短信
     */
    @Override
    public List<AliSms> selectAliSmsList(AliSms aliSms)
    {
        return aliSmsMapper.selectAliSmsList(aliSms);
    }

    /**
     * 新增阿里短信
     * 
     * @param aliSms 阿里短信
     * @return 结果
     */
    @Override
    public int insertAliSms(AliSms aliSms)
    {
        return aliSmsMapper.insertAliSms(aliSms);
    }

    /**
     * 修改阿里短信
     * 
     * @param aliSms 阿里短信
     * @return 结果
     */
    @Override
    public int updateAliSms(AliSms aliSms)
    {
        return aliSmsMapper.updateAliSms(aliSms);
    }

    /**
     * 批量删除阿里短信
     * 
     * @param ids 需要删除的阿里短信主键
     * @return 结果
     */
    @Override
    public int deleteAliSmsByIds(Long[] ids)
    {
        return aliSmsMapper.deleteAliSmsByIds(ids);
    }

    /**
     * 删除阿里短信信息
     * 
     * @param id 阿里短信主键
     * @return 结果
     */
    @Override
    public int deleteAliSmsById(Long id)
    {
        return aliSmsMapper.deleteAliSmsById(id);
    }
}
